package com.yuexunit.finance.bulkstock.action.v1.dto;

import com.yuexunit.finance.bulkstock.action.v1.model.BulkstockGather;
import com.yuexunit.finance.bulkstock.entity.BulkstockGatherEntity;

/**
 * Created by HuangYH on 2015/10/12.
 */
public class BulkstockGatherCastor {
	public static BulkstockGatherEntity toBulkstockGatherEntity(BulkstockGather gather) {
		BulkstockGatherEntity entity = new BulkstockGatherEntity();
		entity.setCategoryId(entity.getCategoryId());
		entity.setAuditor(entity.getAuditor());
		entity.setAuditState(entity.getAuditState());
		entity.setBulkstockName(entity.getBulkstockName());
		entity.setClosingPrice(entity.getClosingPrice());
		entity.setIncrease(entity.getIncrease());
		entity.setPrice(entity.getPrice());
		entity.setRiseFall(entity.getRiseFall());
		entity.setIssueDateTime(entity.getIssueDateTime());
		entity.setSpecification(entity.getSpecification());
		entity.setWeekAvgPrice(entity.getWeekAvgPrice());
		return entity;
	}

}
